home *** CD-ROM | disk | FTP | other *** search
- Path: news.eunet.ch!usenet
- From: Patrick Luginbuehl <galifa@dial.eunet.ch>
- Newsgroups: comp.lang.c
- Subject: HELP! Overlays && DOS with Microsoft C 8.0 (part of VC++ 1.51)
- Date: Mon, 04 Mar 1996 22:13:17 -0800
- Organization: EUnet AG
- Message-ID: <313BDB7D.4588@dial.eunet.ch>
- NNTP-Posting-Host: galifa.dial.eunet.ch
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-2
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- I'm triying to overlay some modules in a DOS-project with Microsoft C 8.0
- (part of VC++
- 1.51). As I understand the documentation all I have to do is to create a
- proper .DEF file that
- contains the modules I want to overlay. Say I've four modules
- - testovl.c // contains main()
- - def.h // prototypes and some globals
- - testfunc.c // functions
- - testfun2.c
- - testfun3.c
- - testfun4.c
-
- All testfun*.c files have about the same size and I'd like to overlay
- them. I created an file
- TESTOVL.DEF containing:
-
- SEGMENTS testfunc_TEXT OVL:1
- SEGMENTS testfun2_TEXT OVL:2
- SEGMENTS testfun3_TEXT OVL:3
- SEGMENTS testfun4_TEXT OVL:4
-
- After recompiling the project I got an testovl.exe which is approx. 7KB
- larger than before
- (quite normal because of the overlay manager code). But this file
- requires also more RAM to
- execute !?
- Does anybody have a small piece of code that creates a _working_ EXE-file
- with overlays
- (that really needs less memory than if it's compiled to a straight
- EXE-file?
-
- HELP! Any suggestions welcome! Please e-mail to galifa@dial.eunet.ch.
- Thanks a lot
-
- Patrick
-